/**
 * 
 */
package com.sj.szxy.courseschedule.constrant;

import java.util.HashSet;
import java.util.Set;

import com.sj.szxy.courseschedule.entity.AdministrativeClass;
import com.sj.szxy.courseschedule.entity.course.Course;

/**
 * @author Yi Ping
 * @date 2018年3月30日 下午3:29:51 
 * @since 1.0.0
 *
 */
public class IncludeAdminstractiveClassConstrant extends Constraint{
		
	private Set<AdministrativeClass> includedClasses = new HashSet<>();

	@Override
	public boolean support(Course course) {
		return includedClasses.containsAll(course.getAdministractiveClasses());
	}

	@Override
	public Constraint addConstraint(Constraint newConstraint) {
		// TODO Auto-generated method stub
		return super.addConstraint(newConstraint);
	}
	
	
}
